package com.yhao.stock.controller;

import com.yhao.stock.service.StockInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author : yhao
 * @Date : 2023/11/10 - 15:00
 * @Desc : TODO
 */
@Controller
@RequestMapping("/staticData")
public class StaticDataController {

    @Autowired
    private StockInfoService stockInfoService;

    @GetMapping("/toStock")
    public String toStock(Model model) {
        // List<StockInfo> stockInfos = stockInfoService.list();
        // model.addAttribute("stockInfos", stockInfos);
        return "stock";
    }



}
